#pragma once
#include <vector>
#include "BaseElement.h"
#include "tiff.h"
#include "tiffio.h"
#include "math.h"
using namespace std;

bool RmwWriteByteImg2BmpFile(byte* pImg, long width, long height, const char* filename);

byte* RmwRead8BitBmpFile2Img(const char* filename, long& width, long& height);

void cutFile(const char* oriFile, const char* outFile, point& pBegin, long& width, long& height);